package com.zxjbyte.yiyi.module.system.domain.param.dict;

import com.zxjbyte.yiyi.framework.common.domain.api.PageQuery;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author zhangxingjia
 * @Date 2024/2/22 17:12
 * @Version: 1.0
 */
@Data
@Schema(description = "字典列表请求结构体")
public class DictListParam extends PageQuery {

    // 字典id
    @Parameter(description = "字典id")
    private Long id;

    @Parameter(description = "字典类型：0-系统字典，1-业务字典")
    @NotNull(message = "type cannot be null")
    private Integer type;

    // 字典名称
    @Parameter(description = "字典名称")
    private String dictName;
}
